import request from '@/utils/request'

export default {
  // 根据选中三级分类后获取平台属性列表
  getList (category1Id, category2Id, category3Id) {
    return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
  },
  // 根据 id 删除平台属性
  delete (attrId) {
    return request.delete(`/admin/product/deleteAttr/${attrId}`)
  },
  // 添加或者修改属性
  addOrUpdate (attr) {
    return request.post('/admin/product/saveAttrInfo', attr)
  }
}